package com.forever7776.life.core.mapper;

import com.forever7776.life.core.entity.FriendlyLink;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 友情链接 Mapper 接口
 * </p>
 *
 * @author kz
 * @since 2018-03-23
 */
public interface FriendlyLinkMapper extends BaseMapper<FriendlyLink> {

    /**
     * 修改友情链接状态
     *
     * @param id
     * @param status
     * @return
     */
    @Update("update friendly_link set status=#{status} where id =#{id}")
    Integer updateLinkStatus(@Param("id") Integer id, @Param("status") Integer status);
}
